using System;
using System.Collections.Generic;
using System.Text;
using Pampa.Common.Pages;

namespace Pampa.WebControls
{
    public class Menu : System.Web.UI.WebControls.Menu
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            AbstractPage.RegisterLibrary(this.Page, "Pampa.Common/Common.js");
        }

        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            base.Render(writer);

            writer.WriteLine("<script type=\"text/javascript\" src=\"Pampa.WebControls/Menu.js\"></script>");
        }
    }
}
